<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="refresh" content="3; url=<?php echo $url ?>"/>
	<title>留言板</title>
	<link href="./Tpl/css/bootstrap.css" rel="stylesheet">
	<link href="./Tpl/css/css.css" rel="stylesheet">
</head>
<body>
	
<nav class="navbar navbar-default">
  <div class="container-fluid center">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Message</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="#">留言</a></li>
        <li><a href="#">发现</a></li>
        <li><a href="#">文章</a></li>
        <li><a href="#">圈子</a></li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">登录</a>
          <ul class="dropdown-menu">
            <form class="navbar-form navbar-right login" role="search">
	            <input type="text" class="form-control" placeholder="账号">
	            <input type="password" class="form-control" placeholder="密码">
	          	<button type="submit" class="btn btn-default">登录</button>
	        </form>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

<div class="container-fluid">
	<div class="main">
		<div class="row">
			<div class="col-md-12">
	            <div class="alert alert-danger" role="alert">
	              <strong><?php echo $msg ?>　</strong><span id="time">3</span>秒之后返回首页
	            </div>
	        </div>
	    </div>
	</div>
</div>

</body>

<script src="./Tpl/js/jquery.min.js"></script>
<script src="./Tpl/js/bootstrap.min.js"></script>

<script type="text/javascript">
  var num = 3;
  function Run(){
    num --;
    document.getElementById("time").innerHTML = num;
  }
  var time = setInterval(Run, 1100);
</script>

</html>